function getCounter() {
  let counter = function (start) {
    console.log("创造了", start);
  };
  counter.interval = 123;
  counter.reset = function () {
    console.log("reset");
  };
  return counter;
}
let c = getCounter();
c(10); // 创造了 10
c.reset(); // reset
c.interval = 5;

getCounter.hh = 123;
console.log(getCounter.hh); // 123
